

import 'package:huajianshe_app/network/response/BaseResp.dart';
import 'package:json_annotation/json_annotation.dart';

part 'SearchModel.g.dart';

@JsonSerializable()
class SearchHotAndHistoryResp extends BaseResp {
  SearchHotAndHistoryData? data;

  SearchHotAndHistoryResp();

  factory SearchHotAndHistoryResp.fromJson(Map<String, dynamic> json) => _$SearchHotAndHistoryRespFromJson(json);

  @override
  SearchHotAndHistoryResp parseFromMap(Map<String, dynamic> map) {
    return SearchHotAndHistoryResp.fromJson(map);
  }
}

@JsonSerializable()
class SearchHotAndHistoryData {

  List<SearchHotAndHistoryResult>? hot;

  List<SearchHotAndHistoryResult>? mine;

  SearchHotAndHistoryData();

  factory SearchHotAndHistoryData.fromJson(Map<String, dynamic> json) => _$SearchHotAndHistoryDataFromJson(json);

}

@JsonSerializable()
class SearchHotAndHistoryResult {
  @JsonKey(name: 'key_name')
  String? name;

  int? count;

  SearchHotAndHistoryResult();

  factory SearchHotAndHistoryResult.fromJson(Map<String, dynamic> json) => _$SearchHotAndHistoryResultFromJson(json);

}